﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="EmployeeInfo.aspx.cs" Inherits="BSCMFF.Web.Pages.UserPages.EmployeeInfo" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ Register Src="~/UserControls/EmployeeTabs/PersonalKPIsTab.ascx" TagPrefix="bsc" TagName="PersonalKPITab" %>
<%@ Register Src="~/UserControls/EmployeeTabs/PKPIsEvaluationTab.ascx" TagPrefix="bsc" TagName="PKPIEvaluationTab" %>
<%@ Register Src="~/UserControls/EmployeeTabs/TasksTab.ascx" TagPrefix="bsc" TagName="TasksTab" %>
<%@ Register Src="~/UserControls/EmployeeTabs/SurveysTab.ascx" TagPrefix="bsc" TagName="SurveysTab" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <%--  <div style="border:1px solid blue;width:100%; height:auto">
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadButtonUploadImage">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadBinaryImage1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
    </telerik:RadAjaxManagerProxy>--%>
<asp:PlaceHolder ID="PlaceHolderEmployeeInfo" runat="server">
<div style="width:100%; height:200px; margin-left:5px">
    <div style="float:left;">    
        <h2><asp:Label ID="lb" runat="server" Text="<%# selectedUser.Fullname %>" 
                meta:resourcekey="lbResource1"></asp:Label></h2>
        <table>
            <tr>
                <td style="padding-right:30px">
                    <asp:Label ID="LabelEmployeeLogin" runat="server" Text="Employee Login" 
                        meta:resourcekey="LabelEmployeeLoginResource1" ></asp:Label>
                </td>
                <td style="padding-right:50px">
                    <asp:Label ID="LabelCurrentEmployeeLogin" runat="server" 
                        Text="<%# selectedUser.Login %>" 
                        meta:resourcekey="LabelCurrentEmployeeLoginResource1" ></asp:Label>
                
                </td>
                <td style="padding-right:20px; padding-left:30px">
                    <asp:Label ID="LabelPhone" runat="server" Text="Phone" 
                        meta:resourcekey="LabelPhoneResource1"  ></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelCurrentPhone" runat="server" 
                        Text="<%# selectedUser.Phone %>" meta:resourcekey="LabelCurrentPhoneResource1" ></asp:Label>
                    <telerik:RadTextBox ID="RadTextBoxCurrentPhone" runat="server" 
                        Text="<%# selectedUser.Phone %>" Visible="false" 
                        meta:resourcekey="RadTextBoxCurrentPhoneResource1">
                    </telerik:RadTextBox>
                </td>
                <%--<td>
                    <div style="height:100px; width:70px; border:1, solid, black">
                        <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" Width="70px" Height="100px" >
                                </telerik:RadBinaryImage>
                    </div>
                </td>--%>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="LabelEmployeeNumber" runat="server" Text="Employee Number" 
                        meta:resourcekey="LabelEmployeeNumberResource1" ></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelEmployeeCurrentNumber" runat="server" 
                        Text="<%# selectedUser.EmployeeID %>" 
                        meta:resourcekey="LabelEmployeeCurrentNumberResource1" ></asp:Label>
                </td>
                <td style="padding-right:20px; padding-left:30px">
                    <asp:Label ID="LabelEmail" runat="server" Text="E-mail" 
                        meta:resourcekey="LabelEmailResource1" ></asp:Label>
                </td>
                <td style="width:200px">
                    <asp:Label ID="LabelCurrentEmail" runat="server" 
                        Text="<%# selectedUser.Email %>" meta:resourcekey="LabelCurrentEmailResource1" ></asp:Label>
                    <telerik:RadTextBox ID="RadTextBoxCurrentEmail" runat="server" 
                        Text="<%# selectedUser.Email %>" Visible="false" 
                        meta:resourcekey="RadTextBoxCurrentEmailResource1">
                    </telerik:RadTextBox>
                    <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" 
                    ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="RadTextBoxCurrentEmail" 
                    ErrorMessage="Invalid Email" ForeColor="Red" Display="Dynamic" 
                        meta:resourcekey="regexEmailValidResource1">
                    </asp:RegularExpressionValidator>

                </td>
           
            </tr>
            <tr>
                <td>
                    <asp:Label ID="LabelJobPosition" runat="server" Text="Job Position" 
                        meta:resourcekey="LabelJobPositionResource1" ></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelCurrentJobPosition" runat="server" 
                        Text="<%# selectedUser.Job_Position %>" 
                        meta:resourcekey="LabelCurrentJobPositionResource1" ></asp:Label>
                </td>
                <td style="padding-right:20px; padding-left:30px">
                    <asp:Label ID="LabelBirthday" runat="server" Text="Birthday" 
                        meta:resourcekey="LabelBirthdayResource1" ></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelCurrentBirthday" runat="server" 
                        meta:resourcekey="LabelCurrentBirthdayResource1" ></asp:Label>
                    <telerik:RadDatePicker ID="RadDatePickerCurrentBirthday" runat="server"  
                        Visible="false" meta:resourcekey="RadDatePickerCurrentBirthdayResource1">
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

<DateInput Width="" DisplayDateFormat="d. M. yyyy" DateFormat="d. M. yyyy"></DateInput>

<DatePopupButton CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton>
                    </telerik:RadDatePicker>
                    <%--<asp:CompareValidator ID="CompareValidator1" runat="server"
                   ControlToValidate="RadTextBoxCurrentBirthday" ErrorMessage="* Enter a valid date"
                   Operator="DataTypeCheck" Type="Date" ValidationGroup="grpDate" />--%>
                </td>
          
            </tr>
            <tr>
                <td>
                    <asp:Label ID="LabelDepartment" runat="server" Text="Department" 
                        meta:resourcekey="LabelDepartmentResource1" ></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelCurrentDepartment" runat="server" 
                        Text='<%# selectedUser.SBU == null ? "" : selectedUser.SBU.Name %>' 
                        meta:resourcekey="LabelCurrentDepartmentResource1" ></asp:Label>
                </td>
                <td></td><td></td>
           
            </tr>
            <tr>
                <td>
                    <asp:Label ID="LabelManager" runat="server" Text="Manager" 
                        meta:resourcekey="LabelManagerResource1" ></asp:Label>
                </td>
                <td>
                    <asp:LinkButton ID="LinkButtonManager" runat="server" 
                        onclick="LinkButtonManager_Click" 
                        meta:resourcekey="LinkButtonManagerResource1" ></asp:LinkButton>
                </td>
                <td>
                    
                </td>
                <td>
                    <telerik:RadButton ID="RadButtonUpdateInfo" runat="server" 
                        Text="Update Personal Info" Visible="false" 
                        onclick="RadButtonUpdateInfo_Click" 
                        meta:resourcekey="RadButtonUpdateInfoResource1">
                    </telerik:RadButton>
                    <telerik:RadButton ID="RadButtonSave" runat="server" Text="Save" 
                        Visible="false" onclick="RadButtonSave_Click" 
                        meta:resourcekey="RadButtonSaveResource1">
                    </telerik:RadButton>
                    <telerik:RadButton ID="RadButtonCancel" runat="server" Text="Cancel" 
                        Visible="false" onclick="RadButtonCancel_Click" 
                        meta:resourcekey="RadButtonCancelResource1">
                    </telerik:RadButton>
                </td>
            </tr>
       
        </table>
    </div>
    <%--<div style="float:right;">--%>
        <div style="float:right;  margin-top:20px; margin-left: 0px; margin-right:50px">
            <span style="float:right">
                <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" Width="150px" 
                Height="150px" AutoAdjustImageControlSize="false" 
                         DataValue="<%# selectedUser.Photo %>" 
                ImageUrl="~/Images/silhouette/silhouette-stewie.jpg" 
                meta:resourcekey="RadBinaryImage1Resource1" >
                        </telerik:RadBinaryImage>
            </span>
            <span style="margin-right:50px">
                <telerik:RadUpload ID="RadUpload1" runat="server" 
                ControlObjectsVisibility="None" Visible="false" Width="150"
                Localization-Select="Select Image" meta:resourcekey="RadUpload1Resource1">
<Localization Select="Select Image"></Localization>
                    </telerik:RadUpload>
            </span>
            
        </div>
        <%--<div style="float:right;">
            <asp:PlaceHolder ID="PlaceHolderChangeImage" runat="server" Visible="false">
                <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None">
                    </telerik:RadUpload>
    
                    <telerik:RadButton ID="RadButtonUploadImage" runat="server" Text="Save"
                         onclick="RadButtonUploadImage_Click" ></telerik:RadButton>
            </asp:PlaceHolder>
            
        </div>
    </div>--%>
</div>
</asp:PlaceHolder>
  
<div style="float:none; top:10px;margin-left:5px">
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Windows7" MultiPageID="RadMultiPage1"
            SelectedIndex="0" meta:resourcekey="RadTabStrip1Resource1" >
            <Tabs>
                <telerik:RadTab Text="Personal KPIs" meta:resourcekey="RadTabResource1">
                </telerik:RadTab>
                <%--<telerik:RadTab Text="Personal KPIs - Evaluation" 
                    meta:resourcekey="RadTabResource2">
                </telerik:RadTab>--%>
                <%--<telerik:RadTab Text="Tasks" meta:resourcekey="RadTabResource3">
                </telerik:RadTab>
                <telerik:RadTab Text="Trainings" meta:resourcekey="RadTabResource4">
                </telerik:RadTab>--%>
                <telerik:RadTab Text="Evaluation" meta:resourcekey="RadTabResource5">
                </telerik:RadTab>
               <%-- <telerik:RadTab Text="Previous Employeers" meta:resourcekey="RadTabResource6" >
                </telerik:RadTab>
                <telerik:RadTab Text="Notes" meta:resourcekey="RadTabResource7">
                </telerik:RadTab>--%>
                <telerik:RadTab Text="Surveys" meta:resourcekey="RadTabResource8">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" 
        Skin="Default" meta:resourcekey="RadAjaxLoadingPanel1Resource1">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" width="100%" 
        LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet" 
        meta:resourcekey="RadAjaxPanel1Resource1">
           
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" 
            CssClass="multiPage" meta:resourcekey="RadMultiPage1Resource1">
            <telerik:RadPageView ID="RadPageView1" runat="server" 
                meta:resourcekey="RadPageView1Resource1" Selected="True">
                <br />
                <bsc:PersonalKPITab ID="PKT" runat="server" />
            </telerik:RadPageView>
            <%--<telerik:RadPageView ID="RadPageView7" runat="server" 
                meta:resourcekey="RadPageView7Resource1">
                <br />
            </telerik:RadPageView>--%>
           <%-- <telerik:RadPageView ID="RadPageView2" runat="server" 
                meta:resourcekey="RadPageView2Resource1" >
                <br />
                <bsc:TasksTab ID="TasksTab1" runat="server" ></bsc:TasksTab>
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView3" runat="server" 
                meta:resourcekey="RadPageView3Resource1">
                <br />
                <bsc:TrainingTab ID="TT" runat="server" />
            </telerik:RadPageView>--%>
            <telerik:RadPageView ID="RadPageView4" runat="server" 
                meta:resourcekey="RadPageView4Resource1">
                <br />
                <bsc:EvaluationTab ID="et" runat="server" />
            </telerik:RadPageView>
            <%--<telerik:RadPageView ID="RadPageView5" runat="server" 
                meta:resourcekey="RadPageView5Resource1">
                
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView6" runat="server" 
                meta:resourcekey="RadPageView6Resource1">
                
            </telerik:RadPageView>--%>
            <telerik:RadPageView ID="RadPageView8" runat="server" 
                meta:resourcekey="RadPageView8Resource1">
                <br />
                <bsc:SurveysTab ID="Surveys" runat="server" />
            </telerik:RadPageView>
        </telerik:RadMultiPage>
    </telerik:RadAjaxPanel>
        
</div>
<br style="clear:both"/>

</asp:Content>
